# Contributor: Max Rees <maxcrees@me.com>
# Maintainer:  Max Rees <maxcrees@me.com>
pkgname=physlock
pkgver=13
pkgrel=0
pkgdesc="Lightweight linux console locking tool"
url="https://github.com/muennich/physlock"
arch="all"
license="GPL-2.0-or-later"
options="!check suid" # No test suite
makedepends="linux-headers linux-pam-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/muennich/physlock/archive/v$pkgver.tar.gz
	disable_systemd.patch
	"

build() {
	make
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="85c291fb7b146fbd81aacbf94d8af07e727dd9b37b458988eaee5f7a51f9923871f9b19fd9438428635963864de67d3f2a72f938d99ffe6dc3015c3a1b99ea1c  physlock-13.tar.gz
ee5bbaefddf95fbf6756e4301f90b78c42981e873795e9f45b8c6a06d7ed0248d67228217b30a6b8d4a0893262c4892117317b267723d3ff8ed6eac2412fbac0  disable_systemd.patch"
